{% extends "base.html" %}

{% block header%}
<title>发布资源版本 配置编辑</title>
{% endblock %}

{% block content %}
{% with model_name='Task' url_prefix='/pack/task/task?task_type=4' %}
<div class="bar">
	<a>发布资源版本 管理</a> -> 发布资源版本 配置编辑
	<div class="buttons">
		<a  class="btn btn-app btn-grey btn-xs radius-4 pull-right submit"  />保存</a>
	</div>
</div>

<form action="{{url_prefix}}&id={{model.id}}{% if redo %}&redo=1&v_id={{v_id}}{% endif %}" method="post">
	<table class="form2">
    <tr hidden="hidden">
        <th>项目代号：</th>
        <td>
            <input type="text" name="proj_tag" value="{{model.project.pro_tag}}" {% if redo %}readonly="readonly"{% endif %}/>
        </td>
	</tr>
	<tr>
		<th>分支名称：</th>
        <td>
            <input type="text" name="branch_name" value="{{model.branch_name}}" readonly="readonly"/>
        </td>
	</tr>
    <tr>
        <th>平台：</th>
        <td>
            {% if redo %}
            <input type="text" name="plat" value="{{os_type}}" readonly="readonly"/>
            {% else %}
            <select id="plat_select" name="plat">
                {% for p in plat_type %}
                    <option value="{{p}}">{{p}}</option>
                {% endfor %}
            </select>
            {% endif %}
        </td>
	</tr>
    <tr>
        <th>版本号：</th>
        <td>
            <input type="text" name="version_name" {% if redo %}value="{{v_model.ver_name}}" readonly="readonly"{% endif %} required="required"/>
        </td>
	</tr>
{#    <tr>#}
{#        <th>资源版本号：</th>#}
{#        <td>#}
{#            <input type="text" name="res_svn" {% if redo %}value="{{v_model.res_svn}}" readonly="readonly"{% endif %}/>#}
{#        </td>#}
{#	</tr>#}
</table>
</form>
{% endwith %}
{% endblock %}